gtk_widget_reposition_after is also valid to call if the widget already
has a parent, so don't notify the parent property in that case.
if (priv->parent->priv->anchored && prev_parent == NULL)
_gtk_widget_propagate_hierarchy_changed (widget, NULL);
- g_object_notify_by_pspec (G_OBJECT (widget), widget_props[PROP_PARENT]);
+
+ if (prev_parent == NULL)
+ g_object_notify_by_pspec (G_OBJECT (widget), widget_props[PROP_PARENT]);
/* Enforce realized/mapped invariants
*/